package pers.cj.pdos.service;

import pers.cj.pdos.entity.House;
import com.baomidou.mybatisplus.extension.service.IService;
import pers.cj.pdos.vo.HouseVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chenj
 * @since 2019-11-04
 */
public interface IHouseService extends IService<House> {

    List<HouseVo> listNormalVo(String companyId,String storeId);
    List<HouseVo> listVo(String companyId);

    List<HouseVo> listVoPage(Integer page, Integer limit, String companyId, String searchStoreId, String searchContent, Integer status);

    long count(String companyId, String searchStoreId, String searchContent, Integer status);

    boolean checkName(String name, String companyId);

    boolean checkNo(String no, String companyId);

    boolean check(String id);

    boolean checkLock(String id);

    HouseVo getVoById(String id);

    House getById(String id);

    List<House> listNormalByStore(String storeId);

    void insert(House house);

    void remove(House house);

    void update(House house);

    House getDefault(String storeId);

    List<House> list(String companyId);
}
